package com.example.demo.service.serviceImp;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.dao.OrderDao;
import com.example.demo.entities.Order;
import com.example.demo.service.OrderService;
@Service
public class OrderServerImp implements OrderService {
	@Autowired
	private OrderDao orderDao;
	@Override
	public void updateBatch(List<Order> orders) {
		// TODO Auto-generated method stub
		this.orderDao.updateBatch(orders);
		System.out.println("更新成功！");
	}
	@Override
	public List<Order> selectAll() {
		// TODO Auto-generated method stub 
		return  this.orderDao.selectAllOrder();
	}

}
